//
//  NavigationBarStyle.swift
//  
//
//  Created by 孙长坦 on 2022/6/16.
//

import Foundation
import UIKit
import LibUI

public struct NavigationBarStyle: Codable {
    /// 导航栏样式
    public enum NavigationBarType: String, Codable {
        case hide
        case opaque
        case transparent
    }
    
    public var type: NavigationBarType
    
    @ColorWrapper
    public var backgroundColor: UIColor?
    
    @ColorWrapper
    public var tintColor: UIColor?
    
    public init(type: NavigationBarType) {
        self.init(type: type, backgroundColor: nil, tintColor: nil)
    }
    
    public init(type: NavigationBarType, backgroundColor: UIColor?, tintColor: UIColor?) {
        self.type = type
        self.backgroundColor = backgroundColor
        self.tintColor = tintColor
    }
}
